/* ========== 全局基础样式 ========== */
QWidget {
    background-color: rgb(90, 102, 131);
    border: none;
    font: 10pt "阿里巴巴普惠体 L";
    border-radius: 0px;
}

QFrame {
    background-color: rgb(214, 218, 227);
}

QGroupBox {
    background-color: rgb(255, 255, 255);
}

/* ========== 标签控件 ========== */
QLabel {
    font: bold 10pt "阿里巴巴普惠体 L";
    background-color: transparent;
    color: rgb(0, 0, 0);
}

/* ========== 勾选控件 ========== */
QCheckBox {
    font: bold 10pt "阿里巴巴普惠体 L";
    background-color: transparent;
    color: rgb(0, 0, 0);
}


/* ========== 输入控件 ========== */
QLineEdit {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 0px;
    padding: 4px 8px;
    selection-background-color: rgb(255, 255, 255);
    selection-color: rgb(0, 0, 0);
}

QLineEdit:focus {
    background-color: rgb(255, 255, 255);
}

QLineEdit:disabled {
    background-color: rgb(200, 200, 200);
    color: rgb(0, 0, 0);
}

/* ========== 日期时间控件 ========== */
QDateTimeEdit {
   font: bold 10pt "阿里巴巴普惠体 L";
    border: 1px solid rgb(80, 80, 80);
    border-radius: 0px;
    padding: 4px 28px 4px 8px;
    background-color: rgb(50, 56, 70);
    color: white;
    min-height: 20px;
}

/* 确保下拉日期框的字体也是黑色 */
QDateTimeEdit QAbstractItemView {
    font: bold 10pt "阿里巴巴普惠体 L";
    color: black;
    selection-background-color: rgb(87, 163, 176);
    selection-color: white;
}

/* ========== 选择控件 ========== */
QComboBox {
    font: bold 10pt "阿里巴巴普惠体 L";
    border: 1px solid rgb(80, 80, 80);
    border-radius: 0px;
    padding: 4px 28px 4px 8px;
    background-color: rgb(50, 56, 70);
    color: white;
    min-height: 20px;
}

QComboBox:hover {
    border: 1px solid rgb(87, 163, 176);
    background-color: rgb(60, 66, 82);
}

QComboBox:focus {
    border: 1px solid rgb(87, 163, 176);
    background-color: rgb(70, 76, 92);
}

QComboBox::down-arrow {
    image: url(:/SmartControl/Resource/down.png);
    width: 12px;
    height: 12px;
}

QComboBox::down-arrow:on {
    image: url(:/SmartControl/Resource/down.png);
}

QComboBox QAbstractItemView {
    font: bold 10pt "阿里巴巴普惠体 L";
    color: black; /* 下拉项字体颜色 */
    background-color: white; /* 下拉框背景色 */
    selection-background-color: rgb(87, 163, 176); /* 选中项背景色 */
    selection-color: white; /* 选中项字体颜色 */
    outline: 0; /* 移除虚线边框 */
    border: 1px solid #5b8cb9; /* 下拉框边框 */
}

/* ========== 按钮控件 ========== */
QPushButton {
    font: 9pt "阿里巴巴普惠体 L";
    background-color: rgb(87, 163, 176);
    color: rgb(255, 255, 255);
    border: 1px solid #5b8cb9;
    border-radius: 4px;
    padding: 4px 12px;
    min-width: 80px;
    min-height: 20px;
    border-bottom: 1px solid #5b8cb9;
}

QPushButton:hover {
    background: rgb(110, 120, 150);
}

QPushButton:pressed {
    background-color: rgb(87, 163, 176);
}

QPushButton:disabled {
    background-color: rgb(153, 153, 153);
}


